package cn.tedu.egarticle.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UserArticleParam {
    @ApiModelProperty(value = "标题",required = true)
    @NotBlank(message = "标题不能为空或空字符串或空白")
    private String title;

    @ApiModelProperty(value = "内容",required = true)
    @Size(min = 10,max = 500,message = "内容长度必须在10-500之间")
    private String content;
}
